<!--图片-->
<div class="tab-pane " id="img">
    <div class="table-responsive">
        <form action="admin/goods_ajax/save_goods/" id="" method="post">
            <table class="table table-striped">
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('路径'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">

                                <input id="upload_image_path_input" class="form-control" type="text" name="path" value=""/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('上传操作'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">

                                <div class="pull-left aw-nav-menu-img">
                                    <a id="aw-nav-menu-img-upload-1">
                                        <img style="width: 100%" src="<?php if ($val['icon']) { ?><?php echo get_setting('upload_url');?>/nav_menu/<?php echo $val['icon']; ?><?php } else { ?><?php echo G_STATIC_URL; ?>/css/default/img/default_class_imgs.png<?php } ?>" alt="" id="aw-nav-menu-img-1" />
                                    </a>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>

                <!--<tr>-->
                <!--<td>-->
                <!--<div class="form-group">-->
                <!--<div class="col-sm-5 col-xs-8">-->
                <!--<div   style="height: 100px;width: 100%">-->
                <!--</div>-->
                <!--</div>-->
                <!--</td>-->
                <!--</tr>-->

                <!--<tr>-->
                <!--<td>-->
                <!--<div class="form-group">-->
                <!--<span class="col-sm-4 col-xs-3 control-label"><?php _e('是否新品'); ?>:</span>-->
                <!--<div class="col-sm-6 col-xs-8">-->
                <!--<div class="btn-group mod-btn">-->
                <!--<label type="button" class="btn mod-btn-color">-->
                <!--<input type="radio" name="is_new" value="1" checked /> <?php _e('是'); ?>-->
                <!--</label>-->

                <!--<label type="button" class="btn mod-btn-color">-->
                <!--<input type="radio" name="is_new" value="0"/> <?php _e('否'); ?>-->
                <!--</label>-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
                <!--</td>-->
                <!--</tr>-->


                <!--<tfoot>-->
                <!--<tr>-->
                <!--<td>-->
                <!--<input type="button" value="<?php _e('走你'); ?>" class="btn btn-primary center-block" onclick="AWS.ajax_post($('#settings_form'));" />-->
                <!--</td>-->
                <!--</tr>-->
                <!--</tfoot>-->
            </table>
        </form>
    </div>
</div>
<!--视频-->
<div class="tab-pane " id="video">
    <div class="table-responsive">
        <form action="admin/goods_ajax/save_goods/" id="settings_form" method="post">
            <table class="table table-striped">

                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('路径'); ?>:</span>
                            <div class="col-sm-6 col-xs-8">

                                <input id="upload_mp4_path_input" class="form-control" type="text" name="path" value=""/>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('上传操作'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">

                                <div class="pull-left aw-nav-menu-img">
                                    <a id="aw-nav-menu-mp4-upload-1">
                                        <img style="width: 100%" src="<?php if ($val['icon']) { ?><?php echo get_setting('upload_url');?>/nav_menu/<?php echo $val['icon']; ?><?php } else { ?><?php echo G_STATIC_URL; ?>/css/default/img/default_class_imgs.png<?php } ?>" alt="" id="aw-nav-menu-mp4-1"  />

                                    </a>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('视频'); ?>:</span>
                            <div class="col-sm-5 col-xs-8">

                                <video id="mp4-play" src="" controls="controls" style="width: 100%">
                                    your browser does not support the video tag
                                </video>
                            </div>
                        </div>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {

        function upload_callback() {
            console.log(this)
        }

        var fileUpload_1= new FileUpload('images', $('#aw-nav-menu-img-upload-1'), $('#aw-nav-menu-img-1'), G_BASE_URL + '/admin/aomas_tools_ajax/img_upload/1', {'multiple' : false},upload_callback(),$("#upload_image_path_input"));
        var fileUpload_2= new FileUpload('mp4', $('#aw-nav-menu-mp4-upload-1'), $('#aw-nav-menu-mp4-1'), G_BASE_URL + '/admin/aomas_tools_ajax/mp4_upload/1', {'multiple' : false},upload_callback(),$("#upload_mp4_path_input"));


    });
</script>